package com.ciei.dpagm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value = "common_role_right")
public class RoleRight implements java.io.Serializable{

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer roleId;
    private Integer rightId;

    public  RoleRight() {

    }

    public RoleRight(Integer roleId, Integer rightId) {
        this.roleId = roleId;
        this.rightId = rightId;
    }

    public RoleRight(Integer id, Integer roleId, Integer rightId) {
        this.id = id;
        this.roleId = roleId;
        this.rightId = rightId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getRightId() {
        return rightId;
    }

    public void setRightId(Integer rightId) {
        this.rightId = rightId;
    }
}
